package com.gewu.pm.ui.activity.filter;

import android.content.Context;
import android.content.Intent;

import com.gewu.pm.ui.activity.filter.base.BaseFilterActivity;
import com.gewu.pm.ui.activity.filter.config.FilterConfig;
import com.gewu.pm.ui.activity.filter.config.SelectorType;

import java.util.Arrays;

/**
 * 筛选-打卡记录
 */
public final class FilterClockInRecordActivity extends BaseFilterActivity {
    
    public static void start(Context context) {
        Intent intent = new Intent(context, FilterClockInRecordActivity.class);
        context.startActivity(intent);
    }
    
    @Override
    protected FilterConfig getFilterConfig() {
        return new FilterConfig.Builder()
                // 1. 打卡状态（使用自定义列表）
                .addTextSelector("clock_status", "打卡状态", "请选择", SelectorType.CUSTOM_LIST,
                        Arrays.asList("正常", "异常"))
                // 打卡时间
                .addTimeSelector("clock_time", "日期", 3)
                // 开始时间-结束时间
                .addDateRangeSelector("date_range", "日期范围")
                .build();
    }
}
